package com.ujson.uaa.controller;

import com.ujson.base.common.dto.Res;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api("管理服务")
@RestController
@RequestMapping("/admin")
public class AdminController {

    @ApiOperation(value = "pass")
    @GetMapping("pass")
    @ResponseBody
    public Object pass() {
        return Res.success("pass");
    }

    @ApiOperation(value = "demo")
    @GetMapping("demo")
    @ResponseBody
    public Object demo() {
        return Res.success("demo");
    }

}
